package fr.utbm.gi.in56.vehicle;

/**
 * 
 * Implementation of a brand entry.
 *
 * @author Adrien Hoffer & Tarik Belabbas
 *
 */
public class BrandEntry implements Comparable< BrandEntry >
{
	/**
	 * The id of the model
	 */
	private int 	id;
	
	/**
	 * The name of the brand
	 */
	private String 	brand;
	
	/**
	 * Constructor
	 * 
	 * @param _id the id of the model
	 * @param _brand the name of the model
	 */
	public BrandEntry( int _id, String _brand)
	{
		this.id 	= _id;
		this.brand 	= _brand;
	}

	/**
	 * Returns the id of the model
	 *
	 * @return the id
	 */
	public int getId()
	{
		return this.id;
	}
	
	/**
	 * Returns the name of the brand
	 * 
	 * @return the name of the brand
	 */
	public String getBrand()
	{
		return this.brand;
	}

	@Override
	public int compareTo( BrandEntry _brandEntry )
	{
		return this.brand.compareTo( _brandEntry.getBrand() );
	}
}
